﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SCMS.Model
{
    [MetadataType(typeof(GoodsReceivedNoteMetaData))]
    public partial class GoodsReceivedNote
    {
    }

    //[Bind(Exclude = "")]
    public class GoodsReceivedNoteMetaData
    {
        //[Required]
        //public object Id { get; set; }
        [Required]
        public object SupplierId { get; set; }
        [Required]
        public object CountryOfficeId { get; set; }
        [Required]
        public object PurchaseOrderId { get; set; }
        [Required]
        public object DeliveredBy { get; set; }
        [Required]
        public object ReceivedBy { get; set; }
        [Required]
        public object IsRejected { get; set; }
        [Required]
        public object IsSubmitted { get; set; }
        [Required]
        public object Verified { get; set; }
        [Required]
        public object Index { get; set; }
        [Required]
        public object RefNumber { get; set; }
        [Required]
        public object WareHouseId { get; set; }

    }
    
    //http://hellspawndev.blogspot.com/2011/10/using-data-annotations-and-validators.html
    //http://codetunnel.com/blog/post/40/validation-with-entity-framework
    //http://www.asp.net/mvc/tutorials/older-versions/models-%28data%29/validation-with-the-data-annotation-validators-cs
    //http://goneale.com/2009/03/04/using-metadatatype-attribute-with-aspnet-mvc-xval-validation-framework/
}
